package com.jt.controller;

import com.jt.service.RightService;
import com.jt.vo.SysResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@CrossOrigin
@RequestMapping("right")
public class RightsController {
    @Autowired
    private RightService rightService;
    @GetMapping("/get")
    public SysResult getright(){
        return SysResult.success(rightService.findAll());
    }
}
